<?php


namespace app\validate;


use think\Validate;

class AdminCheck extends Validate
{
    protected $rule = [
        'name'  => 'require|max:8',
        'password'  => 'require|max:8',
        'email'     => 'require|email',
        'mobile'   => 'require|mobile',

    ];

    protected $message = [
        'name.require' => '用户名名称不能为空',
        'name.max'     => '用户名最多不能超过8个字符',
        'password.require' => '密码不能为空',
        'password.max'     => '密码最多不能超过8个字符',
        'email.require' => '邮箱不能为空',
        'email.email' => '邮箱格式不正确',
        'mobile.require'   => '手机号不能为空',
        'mobile.mobile'   => '手机号格式不正确'

    ];

}